<div class="tableToolbar">
    <div class="coll-md-10" id="addInput">
        <div class="coll-md-15">
            <input type="text" class='search' placeholder=" 类型标识码" ng-model="ctrlScope.itemsearch.nid">
        </div>
        <div class="coll-md-3 scalenone" id="search2">
            <div class="coll-md-4 triangle">
                <select class="form-control" ng-model="ctrlScope.itemsearch.noticeType">
                    <option value="" disabled hidden selected>通知类型</option>
                    <option value="0">短信</option>
                    <option value="1">邮件</option>
                    <option value="2">站内消息</option>
                </select>
            </div>
            <div class="coll-md-3 triangle">
                <select class="form-control" ng-model="ctrlScope.itemsearch.type">
                    <option value="" hidden selected disabled>发送类型</option>
                    <option value="1">系统通知</option>
                    <option value="2">用户通知</option>
                </select>
            </div>
            <div class="coll-md-3 triangle">
                <select class="form-control"  ng-model="ctrlScope.itemsearch.status">
                    <option value="" selected disabled hidden>是否开启</option>
                    <option value="0">关闭</option>
                    <option value="1">开启</option>
                </select>
            </div>
        </div>
        <div class="coll-md-3 scalenone"  id="searchdate" datahide>
            <div class="coll-md-5" >
                <p class="input-group">
                    <input type="text" class="search" placeholder="添加开始时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.beginDateTimex" is-open="popup1.opened" datepicker-options="dateOptions"/>
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open1()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
            <div class="coll-md-5">
                <p class="input-group inline">
                    <input type="text" class="search" placeholder="添加结束时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.endDateTimex" is-open="popup2.opened" datepicker-options="dateOptions"/>
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open2()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
        </div>
        <div class="coll-md-1">
            <input type="button" class="small-icon search2-icon" value="搜索" ng-click="search()">
            <input type="button" class="small-icon search2" value="搜索">
            <input type="button" class="small-icon reset-icon" reset-icon value="重置" ng-click="reset()">
            <input type="button" class="small-icon reset" value="重置">

            <div class="dropdown-menu-right">
                <input type="button" class="small-icon more-icon" value="更多" title='更多搜索项' id="more-icon" data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false">
                <input type="button" class="small-icon more" value="更多">
                <ul class="dropdown-menu" style='margin-left:80px;' aria-labelledby="dropdownMenu2" more-search>
                    <li><a href="javascript:;">日期搜索</a></li>
                    <li><a href="javascript:;">其他条件搜索</a></li>
                </ul>
            </div>

        </div>
    </div>
    <!--<div class="coll-md-2">-->
        <!--<input type="button" class="bttn pos-right"  ng-click="addOrderModal()" value="新建">-->
    <!--</div>-->

</div>
<table ui-table="orderParams">
    <thead>
    <tr>
                <th width="5%">
                    序号
                </th>
                <th width="10%">
                    类型标识码
                </th>
                <th width="5%">
                    通知类型
                </th>
                <th width="5%">
                    发送类型
                </th>
                <th width="5%">
                    是否开启
                </th>
                <th width="12%">
                    标题
                </th>
                <th width="9%">
                    提前发送时间
                </th>
                <th width="25%">
                    短信模板
                </th>
                <th width="10%">
                    添加时间
                </th>
                <th width="10%">
                    修改时间
                </th>
                <th>
                    操作
                </th>
            </tr>
    </thead>
    <tbody>
    <tr ng-repeat="item in orderParams.$rows">
        <td>{{item.id}}</td>
        <td>{{item.nid}}</td>
        <td>{{item.noticeType | noticeType}}</td>
        <td>{{item.type | sendType}}</td>
        <td>{{item.status | extendStatus}}</td>
        <td>{{item.title}}</td>
        <td>{{item.advanceTime | advanceTime}}</td>
        <td style="text-align: justify"><div style="border-radius: 4px;background: #4DB076;color:#fff;padding:6px;margin:4px 0;text-indent: 1.5em;">{{item.typeContent | typeContent}}</div></td>
        <td>{{item.addtime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td>{{item.updatetime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td>
        	<a  ng-click="modifyModal(item.id)">编辑</a>
        </td>
    </tr>
    </tbody>
</table>
<!--<modal title="新建" visible="orderModal">-->
    <!--<form class="form-horizontal" role="form" name="myForm" ng-submit="adoptAdd(myForm.$valid)" novalidate>-->
        <!--<div class="form-body">-->
            <!--<div class="row">-->
                <!--<div class="col-md-6">-->
                    <!--<div class="form-group">-->
                        <!--<label class="control-label col-md-4">类型标识码：</label>-->
                        <!--<div class="col-md-8">-->
                            <!--<input type="text" class="form-control" ng-model="add.nid" required>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</div>-->
                <!--<div class="col-md-6">-->
                    <!--<div class="form-group">-->
                        <!--<label class="control-label col-md-4">通知类型：</label>-->
                        <!--<div class="col-md-8 triangle-left">-->
                        	<!--<select ng-model="add.noticeType" class="form-control" ui-select2="select2Options" required>-->
                                <!--<option value="" hidden disabled selected>请选择</option>-->
                        		<!--<option value="0">短信</option>-->
                        		<!--<option value="1">邮箱</option>-->
                        		<!--<option value="2">站内消息</option>-->
                        	<!--</select>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</div>-->
                <!--<div class="col-md-6">-->
                    <!--<div class="form-group">-->
                        <!--<label class="control-label col-md-4">发送类型：</label>-->
                        <!--<div class="col-md-8 triangle-left">-->
                        	<!--<select ng-model="add.type" class="form-control" ui-select2="select2Options" required>-->
                                <!--<option value="" selected disabled hidden>请选择</option>-->
                        		<!--<option value="1">系统通知</option>-->
                        		<!--<option value="2">用户通知</option>-->
                        	<!--</select>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</div>-->
                <!--<div class="col-md-6">-->
                    <!--<div class="form-group">-->
                        <!--<label class="control-label col-md-4">是否开启：</label>-->
                        <!--<div class="col-md-8 triangle-left">-->
                        	<!--<select ng-model="add.status" class="form-control" ui-select2="select2Options" required>-->
                                <!--<option value="" disabled hidden selected>请选择</option>-->
                        		<!--<option value="1">开启</option>-->
                        		<!--<option value="0">关闭</option>-->
                        	<!--</select>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</div>-->
                <!--<div class="col-md-6">-->
                    <!--<div class="form-group">-->
                        <!--<label class="control-label col-md-4">提前发送时间：</label>-->
                        <!--<div class="col-md-8 triangle-left">-->
                        	<!--<select ng-model="add.advanceTime"class="form-control" ui-select2="select2Options" required>-->
                                <!--<option value="" hidden selected disabled>请选择</option>-->
                        		<!--<option value="0">及时发送</option>-->
                        		<!--<option value="1">1天</option>-->
                        		<!--<option value="2">2天</option>-->
                        		<!--<option value="3">3天</option>-->
                        		<!--<option value="4">4天</option>-->
                        		<!--<option value="5">5天</option>-->
                        		<!--<option value="6">6天</option>-->
                        		<!--<option value="7">7天</option>-->
                        		<!--<option value="8">8天</option>-->
                        		<!--<option value="9">9天</option>-->
                        	<!--</select>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</div>-->
                <!--<div class="col-md-12">-->
                    <!--<div class="form-group">-->
                        <!--<label class="control-label col-md-2">短信模板：</label>-->
                        <!--<div class="col-md-10">-->
                            <!--<textarea ng-model="add.typeContent" required style="width:100%;height: 100px;border-radius: 4px;padding:10px;border-color:#ccc;"></textarea>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</div>-->
            <!--</div>-->
            <!--<div class="buttonArea col-md-12">-->
                <!--<button type="submit" class="btn blue" ng-disabled="myForm.$invalid">提交</button>-->
            <!--</div>-->

        <!--</div>-->
    <!--</form>-->
<!--</modal>-->
<modal title="编辑" visible="detailsModal">
    <form class="form-horizontal">
        <div class="form-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">类型标识码：</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="list.nid">
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">通知类型：</label>
                        <div class="col-md-8 triangle-left">
                        	<select ng-model="list.noticeType" class="form-control" ui-select2="select2Options">
                        		<option value="0">短信</option>
                        		<option value="1">邮箱</option>
                        		<option value="2">站内消息</option>
                        	</select>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">发送类型：</label>
                        <div class="col-md-8 triangle-left">
                        	<select ng-model="list.type" class="form-control" ui-select2="select2Options">
                        		<option value="1">系统通知</option>
                        		<option value="2">用户通知</option>
                        	</select>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">是否开启：</label>
                        <div class="col-md-8 triangle-left">
                        	<select ng-model="list.status" class="form-control" ui-select2="select2Options">
                        		<option value="1">开启</option>
                        		<option value="0">关闭</option>
                        	</select>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">提前发送时间：</label>
                        <div class="col-md-8 triangle-left">
                        	<select ng-model="list.advanceTime" class="form-control" ui-select2="select2Options">
                        		<option value="0">及时发送</option>
                        		<option value="1">1天</option>
                        		<option value="2">2天</option>
                        		<option value="3">3天</option>
                        		<option value="4">4天</option>
                        		<option value="5">5天</option>
                        		<option value="6">6天</option>
                        		<option value="7">7天</option>
                        		<option value="8">8天</option>
                        		<option value="9">9天</option>
                        	</select>
                        </div>
                    </div>
                </div>
                <div class="col-md-12">
                    <div class="form-group">
                        <label class="control-label col-md-2">短信模板：</label>
                        <div class="col-md-10">
                            <textarea ng-model="list.typeContent" style="width: 100%;height:100px;border-radius: 4px;padding:10px;border-color:#ccc;"></textarea>
                        </div>
                    </div>
                </div>
            </div>
            <div class="buttonArea col-md-12">
                <button type="submit" class="btn blue" ng-click="saveSubmit()">保存</button>
            </div>

        </div>
    </form>
</modal>